import request from '@/utils/request'

// 查询人员登记列表
export function listPhysicalregister(query) {
  return request({
    url: '/physical/physicalregister/list',
    method: 'get',
    params: query
  })
}

// 查询人员登记详细
export function getPhysicalregister(id) {
  return request({
    url: '/physical/physicalregister/' + id,
    method: 'get'
  })
}
// 新增人员登记
export function addPhysicalregister(data) {
  return request({
    url: '/physical/physicalregister',
    method: 'post',
    data: data
  })
}

// 修改人员登记
export function updatePhysicalregister(data) {
  return request({
    url: '/physical/physicalregister/editPhysical',
    method: 'put',
    data: data
  })
}

// 删除人员登记
export function delPhysicalregister(id) {
  return request({
    url: '/physical/physicalregister/' + id,
    method: 'delete'
  })
}
//获取结果
export function getReport(data) {
  return request({
    url: '/physical/physicalregister/getReport',
    method: 'post',
    data: data
  })
}
//查看人员信息
export function getPhysicalInfo(data) {
  return request({
    url: '/physical/physicalregister/getPhysicalInfo',
    method: 'post',
    data: data
  })
}
